﻿using PublicCommon;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Contract.Domain
{
    /// <summary>
    /// 跟踪记录表
    /// </summary>
    [Table("Tail")]
    public class Tail : Audit
    {
        [Key]
        public int TailId { get; set; }
        /// <summary>
        /// 合同编号
        /// </summary>
        public string? ContractNumber { get; set; }
        /// <summary>
        /// 收货地址
        /// </summary>
        public string? Shipping { get; set; }
        /// <summary>
        /// 车牌号
        /// </summary>
        public string? license { get; set; }
        /// <summary>
        /// 货物状态
        /// </summary>
        public string? GoodsState { get; set; }
        /// <summary>
        /// 跟踪状态
        /// </summary>
        public string? TrackingState { get; set; }
        /// <summary>
        /// 经办人
        /// </summary>
        public string? Responsible { get; set; }
        /// <summary>
        /// 审批人
        /// </summary>
        public string? Approver { get; set; }
        /// <summary>
        /// 手机号
        /// </summary>
        public string? Phone { get; set; }
        /// <summary>
        /// 时间
        /// </summary>
        public DateTime? DateTime { get; set; } = System.DateTime.Now;
        /// <summary>
        /// 线路id
        /// </summary>
        public int? Route { get; set; }
        /// <summary>
        /// 承运商
        /// </summary>
        public string? ShipperEnterprise { get; set; }
        /// <summary>
        /// 签收人
        /// </summary>
        public string? Signed { get; set; }
    }
}
